import request from "@/request/api";
/* 缺陷降级单 */
//查询分页列表
export function queryVoPageList(data) {
  return request({
      url: "/eam-service-order/defectDemotion/queryVoPageList",
      method: "get",
      params: data,
  });
}
//查询分页列表
export function queryVoList(data) {
  return request({
      url: "/eam-service-order/defectDemotion/queryList",
      method: "get",
      params: data,
  });
}
// 新增或修改
export function insertOrUpdate(data) {
  return request({
      url: "/eam-service-order/defectDemotion/insertOrUpdate",
      method: "post",
      data: data,
  });
}
// 根据id查询
export function getDetails(data) {
  return request({
      url: "/eam-service-order/defectDemotion/queryById",
      method: "get",
      params: data,
  });
}
// 根据id删除
export function deleteById(data) {
  return request({
      url: "/eam-service-order/defectDemotion/deleteById",
      method: "delete",
      params: data,
  });
}
// 新增
export function insert(data) {
  return request({
      url: "/eam-service-order/defectDemotion/insert",
      method: "post",
      data: data,
  });
}